$(function() {   
  $(".cdownload").click(function() {   
    
	var morningafternoon = $("select#morningafternoon").val();  
	if (morningafternoon == "0") {   
		alert("Please select morning run or afternoon run");
		return false;   
	}			
	var rundate = $("input#rundate").val();  
	if (rundate == "") {   
		alert("Please enter the run date");
		return false;   
	}
	
	var padpds = $("select#padpds").val();  
	if (padpds == "0") {   
		alert("Please select file type");
		return false;   
	}		
	
  });  

});   




